import requestWithToken from '../../utils/request_token.js';

export default {
	
	cancelMember(_id){
			return requestWithToken('/member/cancleMember', { _id },'POST');
	},
	
	like(user_id, menu_id) {
		return requestWithToken('/user/mylike', { user_id, menu_id }, 'POST');
	},

	collect(user_id, menu_id) {
		return requestWithToken('/user/collect', { user_id, menu_id }, 'POST');
	},
	
	record(user_id, menu_id){
			return requestWithToken('/user/record',{ user_id,menu_id },'POST');
	},
		
	getCollect(_id){
		return requestWithToken('/user/getcollect', { _id });
	},
	
	getRecord(_id){
		return requestWithToken('/user/getrecord', { _id });
	
	}

};
